home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_bas
/
pbc32.zip
/
PBC$BAS.ZIP
/
SHUFFLES.BAS
< prev
next >
Wrap
BASIC Source File
|
1996-04-10
|
646b
|
17 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone (C) Copyright 1996 Charon Software, All Rights Reserved |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION RndI% (TopValue%)
SUB ShuffleSt (St$)
FOR tmp% = 1 TO LEN(St$)
posn% = RndI%(LEN(St$)) + 1
ch$ = MID$(St$, tmp%, 1)
MID$(St$, tmp%, 1) = MID$(St$, posn%, 1)
MID$(St$, posn%, 1) = ch$
NEXT
END SUB